package cn.fjgc.work;

import java.util.List;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;

public class Test3 {
	public static void main(String[] args) {
		Integer a[] = {20,10,50,40,30,70,60,80,90,100};
		
		ArrayList<Integer> list =  new ArrayList<Integer>(Arrays.asList(a));
		
		//list.toArray(a);
		list.sort(null);
		
		//System.out.println(list);

		for (Integer integer : list) {
			System.out.print(integer + " ");
		}
		
	}
}
